"""
HumanBreakerStrategy.py

Author: Zach Epolito
Date: 9-21-08
"""

from BreakerStrategy import BreakerStrategy
from HumanBreakerInputFrame import HumanBreakerInputFrame

"""represents a human breaker
"""
class HumanBreakerStrategy(BreakerStrategy):

    """Constructor."""
    def __init__(self):
        self.frame = None
        
    """passes the controller functor and
       frame to the GUI
    """
    def strategy(self, contFunctor, GUI, waitTime):
        
        #Requests the GUI to get input from the user
        if self.frame == None:
            self.frame = HumanBreakerInputFrame(GUI.getRootInputView(), contFunctor, width=300, height=100)
        #self.frame.reset()
        GUI.set_input_view(self.frame)
        self.frame = None
        


